Optimal. Leaf size=176 \[ -\frac{\log \left (a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} \sin (c+d x)+b^{2/3} \sin ^2(c+d x)\right )}{9 a^{5/3} \sqrt [3]{b} d}+\frac{2 \log \left (\sqrt [3]{a}+\sqrt [3]{b} \sin (c+d x)\right )}{9 a^{5/3} \sqrt [3]{b} d}-\frac{2 \tan ^{-1}\left (\frac{\sqrt [3]{a}-2 \sqrt [3]{b} \sin (c+d x)}{\sqrt{3} \sqrt [3]{a}}\right )}{3 \sqrt{3} a^{5/3} \sqrt [3]{b} d}+\frac{\sin (c+d x)}{3 a d \left (a+b \sin ^3(c+d x)\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.115185, antiderivative size = 176, normalized size of antiderivative = 1., number of steps used = 8, number of rules used = 8, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.381, Rules used = {3223, 199, 200, 31, 634, 617, 204, 628} \[ -\frac{\log \left (a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} \sin (c+d x)+b^{2/3} \sin ^2(c+d x)\right )}{9 a^{5/3} \sqrt [3]{b} d}+\frac{2 \log \left (\sqrt [3]{a}+\sqrt [3]{b} \sin (c+d x)\right )}{9 a^{5/3} \sqrt [3]{b} d}-\frac{2 \tan ^{-1}\left (\frac{\sqrt [3]{a}-2 \sqrt [3]{b} \sin (c+d x)}{\sqrt{3} \sqrt [3]{a}}\right )}{3 \sqrt{3} a^{5/3} \sqrt [3]{b} d}+\frac{\sin (c+d x)}{3 a d \left (a+b \sin ^3(c+d x)\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3223
Rule 199
Rule 200
Rule 31
Rule 634
Rule 617
Rule 204
Rule 628
Rubi steps
\begin{align*} \int \frac{\cos (c+d x)}{\left (a+b \sin ^3(c+d x)\right )^2} \, dx &=\frac{\operatorname{Subst}\left (\int \frac{1}{\left (a+b x^3\right )^2} \, dx,x,\sin (c+d x)\right )}{d}\\ &=\frac{\sin (c+d x)}{3 a d \left (a+b \sin ^3(c+d x)\right )}+\frac{2 \operatorname{Subst}\left (\int \frac{1}{a+b x^3} \, dx,x,\sin (c+d x)\right )}{3 a d}\\ &=\frac{\sin (c+d x)}{3 a d \left (a+b \sin ^3(c+d x)\right )}+\frac{2 \operatorname{Subst}\left (\int \frac{1}{\sqrt [3]{a}+\sqrt [3]{b} x} \, dx,x,\sin (c+d x)\right )}{9 a^{5/3} d}+\frac{2 \operatorname{Subst}\left (\int \frac{2 \sqrt [3]{a}-\sqrt [3]{b} x}{a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} x+b^{2/3} x^2} \, dx,x,\sin (c+d x)\right )}{9 a^{5/3} d}\\ &=\frac{2 \log \left (\sqrt [3]{a}+\sqrt [3]{b} \sin (c+d x)\right )}{9 a^{5/3} \sqrt [3]{b} d}+\frac{\sin (c+d x)}{3 a d \left (a+b \sin ^3(c+d x)\right )}+\frac{\operatorname{Subst}\left (\int \frac{1}{a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} x+b^{2/3} x^2} \, dx,x,\sin (c+d x)\right )}{3 a^{4/3} d}-\frac{\operatorname{Subst}\left (\int \frac{-\sqrt [3]{a} \sqrt [3]{b}+2 b^{2/3} x}{a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} x+b^{2/3} x^2} \, dx,x,\sin (c+d x)\right )}{9 a^{5/3} \sqrt [3]{b} d}\\ &=\frac{2 \log \left (\sqrt [3]{a}+\sqrt [3]{b} \sin (c+d x)\right )}{9 a^{5/3} \sqrt [3]{b} d}-\frac{\log \left (a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} \sin (c+d x)+b^{2/3} \sin ^2(c+d x)\right )}{9 a^{5/3} \sqrt [3]{b} d}+\frac{\sin (c+d x)}{3 a d \left (a+b \sin ^3(c+d x)\right )}+\frac{2 \operatorname{Subst}\left (\int \frac{1}{-3-x^2} \, dx,x,1-\frac{2 \sqrt [3]{b} \sin (c+d x)}{\sqrt [3]{a}}\right )}{3 a^{5/3} \sqrt [3]{b} d}\\ &=-\frac{2 \tan ^{-1}\left (\frac{1-\frac{2 \sqrt [3]{b} \sin (c+d x)}{\sqrt [3]{a}}}{\sqrt{3}}\right )}{3 \sqrt{3} a^{5/3} \sqrt [3]{b} d}+\frac{2 \log \left (\sqrt [3]{a}+\sqrt [3]{b} \sin (c+d x)\right )}{9 a^{5/3} \sqrt [3]{b} d}-\frac{\log \left (a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} \sin (c+d x)+b^{2/3} \sin ^2(c+d x)\right )}{9 a^{5/3} \sqrt [3]{b} d}+\frac{\sin (c+d x)}{3 a d \left (a+b \sin ^3(c+d x)\right )}\\ \end{align*}
Mathematica [A] time = 0.474991, size = 152, normalized size = 0.86 \[ \frac{\frac{2 \log \left (\sqrt [3]{a}+\sqrt [3]{b} \sin (c+d x)\right )-\log \left (a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} \sin (c+d x)+b^{2/3} \sin ^2(c+d x)\right )}{\sqrt [3]{b}}+\frac{3 a^{2/3} \sin (c+d x)}{a+b \sin ^3(c+d x)}-\frac{2 \sqrt{3} \tan ^{-1}\left (\frac{\sqrt [3]{a}-2 \sqrt [3]{b} \sin (c+d x)}{\sqrt{3} \sqrt [3]{a}}\right )}{\sqrt [3]{b}}}{9 a^{5/3} d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.064, size = 157, normalized size = 0.9 \begin{align*}{\frac{\sin \left ( dx+c \right ) }{3\,da \left ( a+b \left ( \sin \left ( dx+c \right ) \right ) ^{3} \right ) }}+{\frac{2}{9\,abd}\ln \left ( \sin \left ( dx+c \right ) +\sqrt [3]{{\frac{a}{b}}} \right ) \left ({\frac{a}{b}} \right ) ^{-{\frac{2}{3}}}}-{\frac{1}{9\,abd}\ln \left ( \left ( \sin \left ( dx+c \right ) \right ) ^{2}-\sqrt [3]{{\frac{a}{b}}}\sin \left ( dx+c \right ) + \left ({\frac{a}{b}} \right ) ^{{\frac{2}{3}}} \right ) \left ({\frac{a}{b}} \right ) ^{-{\frac{2}{3}}}}+{\frac{2\,\sqrt{3}}{9\,abd}\arctan \left ({\frac{\sqrt{3}}{3} \left ( 2\,{\sin \left ( dx+c \right ){\frac{1}{\sqrt [3]{{\frac{a}{b}}}}}}-1 \right ) } \right ) \left ({\frac{a}{b}} \right ) ^{-{\frac{2}{3}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.73682, size = 1588, normalized size = 9.02 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.22908, size = 219, normalized size = 1.24 \begin{align*} -\frac{\frac{2 \, \left (-\frac{a}{b}\right )^{\frac{1}{3}} \log \left ({\left | -\left (-\frac{a}{b}\right )^{\frac{1}{3}} + \sin \left (d x + c\right ) \right |}\right )}{a^{2}} - \frac{3 \, \sin \left (d x + c\right )}{{\left (b \sin \left (d x + c\right )^{3} + a\right )} a} - \frac{2 \, \sqrt{3} \left (-a b^{2}\right )^{\frac{1}{3}} \arctan \left (\frac{\sqrt{3}{\left (\left (-\frac{a}{b}\right )^{\frac{1}{3}} + 2 \, \sin \left (d x + c\right )\right )}}{3 \, \left (-\frac{a}{b}\right )^{\frac{1}{3}}}\right )}{a^{2} b} - \frac{\left (-a b^{2}\right )^{\frac{1}{3}} \log \left (\sin \left (d x + c\right )^{2} + \left (-\frac{a}{b}\right )^{\frac{1}{3}} \sin \left (d x + c\right ) + \left (-\frac{a}{b}\right )^{\frac{2}{3}}\right )}{a^{2} b}}{9 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]